.note-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow: hidden;
  background: inherit;

  .condensed .note-list-item-excerpt {
    display: none;
  }

  .expanded .note-list-item-excerpt {
    white-space: normal;
    max-height: 88px;
  }

  &.is-empty {
    align-items: center;
    justify-content: center;
    height: 100vh;
  }
}

.note-list-placeholder {
  color: $studio-gray-50;
  font-size: 1.3em;
}

.note-list-items {
  flex: 1 1 auto;
  overflow: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  div:focus {
    outline: none;
  }
}

.note-list-empty-trash {
  flex: none;
  padding: 10px 20px;
  border-top: 1px solid $studio-gray-5;
  text-align: center;
}

.note-list-header {
  width: 100%;
  height: 28px;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: $studio-gray-70;
  background: rgba($studio-gray-5, 0.5);
  padding: 5px 30px;
}

.note-list-item {
  cursor: pointer;
  display: flex;
  padding-left: 8px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  .note-list-item-pinner {
    flex: none;
    height: 14px;
    width: 14px;
    margin-right: 8px;
    margin-top: 14px;
    border-radius: 50%;

    &:focus {
      outline: none;
    }
  }

  &:hover .note-list-item-pinner {
    box-shadow: inset 0 0 0 2px $studio-gray-10, inset 0 0 0 3px $studio-white;

    &:hover {
      background: $studio-gray-50;
    }
  }

  &.note-list-item-pinned .note-list-item-pinner {
    background: $studio-gray-80;
    box-shadow: inset 0 0 0 2px $studio-gray-5, inset 0 0 0 3px $studio-white;

    &:hover {
      background: $studio-gray-10;
    }
  }

  .note-list-item-text {
    flex: 1 1 auto;
    overflow: hidden;
    padding: 9px 0;
    border-bottom: 1px solid $studio-gray-5;

    &:focus {
      outline: none;
    }
  }

  .note-list-item-title,
  .note-list-item-excerpt {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  &.note-list-item-selected {
    background: $studio-simplenote-blue-5;
  }

  .note-list-item-published-icon {
    margin-left: 4px;
    margin-right: 10px;

    & svg {
      fill: $studio-gray-50;
      height: 12px;
      width: 12px;
    }
  }

  .note-list-item-title {
    display: flex;
    justify-content: space-between;
    font-size: 16px;

    & span {
      text-overflow: ellipsis;
      overflow: hidden;
    }
  }

  .note-list-item-excerpt {
    color: $studio-gray-80;
  }
}
